package cn.sh.cares.esb.transformer;

import java.io.InputStream;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.mule.api.transformer.TransformerException;
import org.mule.transformer.AbstractTransformer;

public class LoginWSTransformer extends AbstractTransformer {

	private static Log log = LogFactory.getLog(LoginWSTransformer.class);
	
	protected Object doTransform(Object src, String encoding)
			throws TransformerException {
		
		log.debug(ToStringBuilder.reflectionToString(src));
		
		// transform the input to WebService(MuleWSProvider#
		if (src instanceof String) {
			return src;
		} else if (src instanceof InputStream) {
			
		}
		return null;
	}

}
